package com.imooc.resource;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 自定义配置文件属性
 *
 * @Author: 顾志杰
 * @Date: 2019/12/6
 * @Time: 10:35
 */
@Data
@Component
@PropertySource("classpath:file-upload-dev.properties")
@ConfigurationProperties(prefix = "file")
public class FileUpload {
    private String imageUserFaceLocation;

    private String imageServerUrl;

    /**
     * fastdfs
     */
    private String host;
}
